// ClassWithAHackInIt.java
//
// Informatics 102 Spring 2012
// Code Example
//
// This is a hack that contains a "hack method," one that its author thinks
// should be revisited because it's not implemented as well as it could be.
// The author has also marked the class as being a "hack," as well, though
// this is strictly up to the author; classes or methods (or both) can be
// marked this way.


@Hack(description = "Class contains a method with a hack")
public class ClassWithAHackInIt
{
	@Hack(description = "Sleeping for no reason")
	public void methodWithAHackInIt()
	{
		try
		{
			Thread.sleep(5000);
		}
		catch (InterruptedException e)
		{
		}
	}
	
	
	public void methodWithNoHackInIt()
	{
		System.out.println("This is a thing of absolute beauty");
	}
}
